package request


type TaobaoMiniappTemplateQueryappRequest struct {
    /*
        分页大小，最大50，按照小程序Id倒序     */
    PageSize  *int64 `json:"page_size" required:"true" `
    /*
        模板id     */
    TemplateId  *string `json:"template_id" required:"true" `
    /*
        分页号,>=1     */
    PageNum  *int64 `json:"page_num" required:"true" `
}

func (s *TaobaoMiniappTemplateQueryappRequest) SetPageSize(v int64) *TaobaoMiniappTemplateQueryappRequest {
    s.PageSize = &v
    return s
}
func (s *TaobaoMiniappTemplateQueryappRequest) SetTemplateId(v string) *TaobaoMiniappTemplateQueryappRequest {
    s.TemplateId = &v
    return s
}
func (s *TaobaoMiniappTemplateQueryappRequest) SetPageNum(v int64) *TaobaoMiniappTemplateQueryappRequest {
    s.PageNum = &v
    return s
}

func (req *TaobaoMiniappTemplateQueryappRequest) ToMap() map[string]interface{} {
    paramMap := make(map[string]interface{})
    if(req.PageSize != nil) {
        paramMap["page_size"] = *req.PageSize
    }
    if(req.TemplateId != nil) {
        paramMap["template_id"] = *req.TemplateId
    }
    if(req.PageNum != nil) {
        paramMap["page_num"] = *req.PageNum
    }
    return paramMap
}

func (req *TaobaoMiniappTemplateQueryappRequest) ToFileMap() map[string]interface{} {
    fileMap := make(map[string]interface{})
    return fileMap
}